import React from 'react';
import { connect } from 'dva';
import PageContent from '../../components/PageContent';
import SmokeTable from './SmokeResultTable';

@connect(({ smokereport, loading }) => ({ smokereport, loading: loading.models.smokereport }))
class SmokeResultManage extends React.Component {
  render() {
    const { dispatch, loading, smokereport: { smokereportinfo, projectlist } } = this.props;
    const smokeTableProps = {
      dispatch,
      loading,
      smokereportinfo,
      projectlist,
    };
    return (
      <PageContent title="smoke结果管理" >
        <SmokeTable {...smokeTableProps} />
      </PageContent>
    );
  }
}

export default SmokeResultManage;
